import {createWebHashHistory,createRouter}   from "vue-router";

import  index from '../view/index.vue'
import  member from '../view/member.vue'
import login from '../view/Login.vue'

const routes = [
    {path: '/login', component: login},
    {
        path: '/',
        name: 'index',
        component: index,
        children: [
            {path: '/member', component: member}
        ]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router;
